@import './base.css';

/* 全局样式 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
}

/* 布局类 */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* 间距类 */
.m-0 {
  margin: 0;
}
.p-0 {
  padding: 0;
}

.mt-mini {
  margin-top: var(--el-spacing-mini);
}
.mt-small {
  margin-top: var(--el-spacing-small);
}
.mt-base {
  margin-top: var(--el-spacing-base);
}
.mt-medium {
  margin-top: var(--el-spacing-medium);
}
.mt-large {
  margin-top: var(--el-spacing-large);
}

.mb-mini {
  margin-bottom: var(--el-spacing-mini);
}
.mb-small {
  margin-bottom: var(--el-spacing-small);
}
.mb-base {
  margin-bottom: var(--el-spacing-base);
}
.mb-medium {
  margin-bottom: var(--el-spacing-medium);
}
.mb-large {
  margin-bottom: var(--el-spacing-large);
}

/* 文本类 */
.text-primary {
  color: var(--el-text-color-primary);
}

.text-regular {
  color: var(--el-text-color-regular);
}

.text-secondary {
  color: var(--el-text-color-secondary);
}

.font-bold {
  font-weight: 600;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* 鼠标样式 */
.cursor-pointer {
  cursor: pointer;
}

/* 溢出处理 */
.overflow-hidden {
  overflow: hidden;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
